package com.mvc.model;

/**
 * @ClassName UserThreadLocal
 * @Description TODO
 * @Author lvzhenzhen
 * @Date 2021/12/14 13:44
 */
public class UserThreadLocal {
    static ThreadLocal<Integer> userId = new ThreadLocal<>();

    public static Integer getUserId() {
        return userId.get();
    }

    public static void setUserId(Integer id) {
        userId.set(id);
    }
}
